import Vue from "vue";
import Router from "vue-router";
import login from "./modules/login.vue";
import main from "./modules/main.vue";

Vue.use(Router);


let router = new Router({
    mode: "history",
    base: "/",
    routes: [
        {
            path: "/",
            name: "Root",
            meta: { pageName: "首页" },
            component: login
        },
        {
            path: "/main",
            name: "main",
            component: main
        }
    ]
});

export default router;